-- Leviathan (c) v.v.balashoff
local Class = require('leviathan/Class')

local SliderComponent = Class:derive('SliderComponent')

function SliderComponent:new(name, x, y, w, h)
    self.id = 'SliderComponent'
    self.typeId = 'Slider'
    self.drawable = false
    self.enabled = true

    self.name = name or self.id
    self.x = x or 0
    self.y = y or 0
    self.w = w or 0
    self.h = h or 0

    self.velocity = 0
    self.value = 0
end

return SliderComponent
